<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>我的投稿</title>
    <link rel="stylesheet" type="text/css" href="css/aui.css">
	<link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/my.css" />
    <style>
        .aui-bar-btn-item {
            border: none;
        }
		.aui-sit-list{
			border-top: 1px solid #eee;
		}
		.aui-mail-product-item-hd{
			width: 2rem;
    		height: 2rem;
		}
    </style>
</head>

<body class="aui-background-white">
    <!--header-->
    <header class="aui-bar aui-border-b aui-bar-nav aui-bar-nav-search aui-text-default aui-background-white">
        <a class="aui-pull-left aui-btn " href="JavaScript:history.go(-1)">
	        <span class="aui-iconfont aui-icon-left aui-text-gray aui-font-size-14"></span>
	    </a>
        <div class="aui-title aui-font-size-14">
           	 我的投稿
        </div>
    </header>

    <!--购物车已有商品列表-->
    <section class="aui-content aui-nav-search-fixed" style="margin-top: 2.25rem;">
        <div class="tab-panel">
			<div class="tab-panel-item tab-active" id="mytougao">
				<div class="tab-item aui-border-b aui-padded-l-15 aui-padded-r-15 aui-padded-b-10" >
					<a href="user-textDetail.html">
						<div class="aui-padded-b-10 aui-padded-l-0 aui-padded-r-0 aui-background-white aui-well-item aui-well-item-clear">
							<div class="aui-well-item-bd">
								<h3><span class="aui-font-weight aui-text-three aui-margin-r-5">第三期</span>2019-10-10 12:00:00</h3>
							</div>
						</div>
						<div class="aui-mail-product aui-arrow aui-padded-0">
							<div class="aui-mail-product-item aui-padded-r-15">
								<div class="aui-font-italic aui-font-size-20 aui-display-flex aui-text-info aui-font-weight aui-margin-r-10">
								  01
							    </div>
								<div class="aui-mail-product-item-hd  aui-padded-l-0 aui-margin-r-5">
									<img src="images/gaojian.png" alt="">
								</div>
								<div class="aui-mail-product-item-bd aui-padded-r-15 aui-text-left">
									<p>家乡的冬天</p>
								</div>
								 <div class="aui-flex-top">
								   <h2 class="aui-text-center">
										<i class="aui-iconfont aui-icon-laud"></i>
										<p class="aui-font-size-12 aui-text-gray">123</p>
								   </h2>
							   </div>
							</div>
						</div>
					</a>
				</div>
				<div class="tab-item aui-padded-l-15 aui-border-b aui-padded-r-15 aui-padded-b-10">
					<a href="user-textDetail.html">
						<div class="aui-padded-b-10 aui-padded-l-0 aui-padded-r-0 aui-background-white aui-well-item aui-well-item-clear">
							<div class="aui-well-item-bd">
								<h3><span class="aui-font-weight aui-text-three aui-margin-r-5">第三期</span>2019-10-10 12:00:00</h3>
							</div>
						</div>
						<div class="aui-mail-product aui-arrow aui-padded-0">
							<div class="aui-mail-product-item aui-padded-r-15">
								<div class="aui-font-italic aui-font-size-20 aui-display-flex aui-text-info aui-font-weight aui-margin-r-10">
								  01
							    </div>
								<div class="aui-mail-product-item-hd  aui-padded-l-0 aui-margin-r-5">
									<img src="images/gaojian.png" alt="">
								</div>
								<div class="aui-mail-product-item-bd aui-padded-r-15 aui-text-left">
									<p>家乡的冬天</p>
								</div>
								 <div class="aui-flex-top">
								   <h2 class="aui-text-center">
										<i class="aui-iconfont aui-icon-laud"></i>
										<p class="aui-font-size-12 aui-text-gray">123</p>
								   </h2>
							   </div>
							</div>
						</div>
					</a>
				</div>
			
			</div>
			
		</div>
    </section>


    <script src="js/jquery-1.7.2.min.js"></script>
	<script src="js/islogin.js"></script>
    <script>
	var baseurl = 'http://kt.zhangzhengjiang.top/api/';
	var static_url = 'http://kt.zhangzhengjiang.top/';
	tougaoList();
	function tougaoList(){
		
		$.ajax({
			url:baseurl+'index/myTougao',
			type:'post',
			data:{uid:window.localStorage.getItem('uid')},
			success:function(res){
				if(res.code == 1){
					var data = res.data;
					var html = '';
					for (var i = 0; i < data.length; i++) {
						html+='<div class="tab-item aui-border-b aui-padded-l-15 aui-padded-r-15 aui-padded-b-10">';
							html+='<a href="user-textDetail.html?wid='+data[i].id+'">';
								html+='<div class="aui-padded-b-10 aui-padded-l-0 aui-padded-r-0 aui-background-white aui-well-item aui-well-item-clear">';
									html+='<div class="aui-well-item-bd">';
										html+='<h3><span class="aui-font-weight aui-text-three aui-margin-r-5">'+data[i].qishu+'</span>'+data[i].createtime+'</h3>';
									html+='</div>';
								html+='</div>';
								html+='<div class="aui-mail-product aui-arrow aui-padded-0">';
									html+='<div class="aui-mail-product-item aui-padded-r-15">';
										html+='<div class="aui-font-italic aui-font-size-20 aui-display-flex aui-text-info aui-font-weight aui-margin-r-10">';
									
									    html+='</div>';
										// html+='<div class="aui-mail-product-item-hd  aui-padded-l-0 aui-margin-r-5">';
										// 	html+='<img src="images/gaojian.png" alt="">';
										// html+='</div>';
										html+='<div class="aui-mail-product-item-bd aui-padded-r-15 aui-text-left">';
											html+='<p>'+data[i].title+'</p>';
										html+='</div>';
										 html+='<div class="aui-flex-top">';
										   html+='<h2 class="aui-text-center">';
												html+='<i class="aui-iconfont aui-icon-laud"></i>';
												html+='<p class="aui-font-size-12 aui-text-gray">'+data[i].praise+'</p>';
										   html+='</h2>';
									   html+='</div>';
									html+='</div>';
								html+='</div>';
							html+='</a>';
						html+='</div>';
					}
					$('#mytougao').html(html);
				}else{
					layer.open({
						content: res.msg
						,skin: 'msg'
						,time: 2 ,//2秒后自动关闭
						
					});
				}
			}
		})
	}

    </script>

</body>

</html>
